package com.asset.mapper;

import com.asset.model.entity.Company;
import com.asset.model.entity.DepreciationRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CompanyMapper {
    /**
     * 查询所有公司（按层级路径排序）
     */
    List<Company> selectAllOrderByLevelPath();


    Company getCompanyById(int companyId);

    List<DepreciationRecord> getRecordList();



    Integer selectType(int companyId);
}